﻿<UserControl x:Class="Adan.Client.Dialogs.Fonts.ColorPicker"
             xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
             xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
             xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" 
             xmlns:d="http://schemas.microsoft.com/expression/blend/2008" 
             xmlns:sys="clr-namespace:System;assembly=mscorlib" 
		     Height="32" Width="190" mc:Ignorable="d">
    <Grid>
        <ComboBox Name="superCombo" ItemsSource="{Binding Path=FontColors}" 
                 DropDownClosed="superCombo_DropDownClosed"
                 SelectedValue="{Binding Path=SelectedFontColor}" 
                 IsSynchronizedWithCurrentItem="True" Loaded="superCombo_Loaded">
            <ComboBox.ItemTemplate>
                <DataTemplate>
                    <StackPanel Orientation="Horizontal">
                        <TextBlock Width="20" Height="20" Margin="5" Background="{Binding Name}"/>
                        <TextBlock Text="{Binding Name}" Margin="5" />
                    </StackPanel>
                </DataTemplate>
            </ComboBox.ItemTemplate>
        </ComboBox>
    </Grid>
</UserControl>